//
//  UIView+Help.h
//  Carpooling
//
//  Created by haidong on 2016/10/26.
//  Copyright © 2016年 MagicBeans. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Help)

/*
 * frameAdjust
 */
//orgin x/y
@property (assign, nonatomic) CGPoint origin;
@property (assign, nonatomic) CGFloat originX;
@property (assign, nonatomic) CGFloat originY;
@property (assign, nonatomic) CGFloat sizeHeight;
@property (assign, nonatomic) CGFloat sizeWidth;
@property (assign, nonatomic) CGFloat bottom;
@property (assign, nonatomic) CGFloat right;
//center x/y
@property (assign, nonatomic) CGFloat floatx;
@property (assign, nonatomic) CGFloat floaty;

@property (assign, nonatomic) CGFloat midX;
@property (assign, nonatomic) CGFloat midY;

/*
 * 设置圆角 边框
 */
- (void)setCorner:(CGFloat)corner;
- (void)setBorderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor;

/*
 * 获取所在ViewController
 */
- (id)getViewController;

/*
 * nib加载
 */
+ (UIView *)loadFromNib;

+ (UIView *)loadNibWithNibName:(NSString *)nibName;

@end
